//
//  PublicFunction.h
//  MobiProject
//
//  Created by 阔 李 on 16/10/23.
//  Copyright © 2016年 yxnzb. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface PublicFunction : NSObject

//判断设备系统版本是否为IOS7之后版本
+ (BOOL)isIOS7OrLater;

//保存配置信息
+ (BOOL) saveConfig:(id)value forKey:(NSString*) key;
//读取配置信息
+ (id) getConfigWithKey:(NSString*) key;

//移除配置信息
+ (void) removeConfigWithKey:(NSString*) key;
    
+ (UIAlertView *)showAlert:(NSString *)title message:(NSString *)msg duration:(NSTimeInterval)time;

+ (UIAlertController *)showAlert:(NSString *)title Mesasge:(NSString *)message viewController:(UIViewController *)vc completion:(void (^)(BOOL finished))completion;

@end
